package com.banban.user.service;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;

public interface AliyunOssService {

    String uploadFile(String bucketName, String objectName, InputStream inputStream);

    String uploadFileWithSuffix(String bucketName, String objectName, String suffix, InputStream inputStream);

    void download(HttpServletResponse response, String path, String fileName) throws UnsupportedEncodingException;

    void createBucket(String bucketName);
}
